<!DOCTYPE HTML>
<html>
<head>
    <title>New Selectors Demo</title>
    <script type="text/javascript">
        function $(selector) {
            var result = document.getElementById(selector);
            return result;
        }

        function nesthosi(param) {
            if (typeof param == "function") {

                // dom ready state change execute callback

                alert(aha);
            }

        }


    </script>
</head>
<body>
<div id="test" style="display:none;">a</div>
    <script type="text/javascript">
        alert($("test").innerHTML);


        

//      document.onreadystatechange = function () {
//	    if (document.readyState == "complete") {
//	        initApplication();
//	    }
//	}
    </script>
</body>
</html>